#!/usr/bin/python

import cPickle as p

shoplistfile = 'shoplist.data'

shoplist = ['apple','mango','orange']


f=file(shoplistfile, 'w')
p.dump(shoplist, f)
f.close()


f=file(shoplistfile)
info = p.load(f)
print info
